using System;

namespace NodeBasedSkillEditor.Model.Node
{
    [Node(Category = DAGHelper.CateName_Math, Name = "Modulo")]
    [NodeTypeGroup(TypeGroupId = 1, AllowedTypes = new Type[] { typeof(int), typeof(float) })]
    public class Node_Modulo : NodeData
    {
        [Port(IOType = EPortIOType.Input, TypeGroup = 1)]
        public ValuePort Value = new ValuePort();

        [Port(IOType = EPortIOType.Input, TypeGroup = 1)]
        public ValuePort ModuloBy = new ValuePort();

        [Port(IOType = EPortIOType.Output, TypeGroup = 1)]
        public ValuePort Result = new ValuePort();

        public override RT_Node BuildRuntimeNode(RT_DAG parentDAG)
        {
            return new RT.Node_Modulo_RT(this, parentDAG);
        }
    }
}
